<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>定时器的应用</title>
    <style type="text/css">
        * {
            margin: 100px;
            padding: 100px;
        }

        #box1 {
            width: 100px;
            height: 100px;
            background-color: red;
            position: absolute;
            left: 0;
        }
    </style>

    <script type="text/javascript">
        window.onload = function () {

        }
    </script>
</head>
<body>
<button id="btn01">点击按钮以后box1向右移动</button>

<br/><br/>

<div id="box1"></div>

<div style="width: 0; height: 1000px; border-left:1px black solid; position: absolute; left: 800px;top:0;"></div>
</body>
</html>